<%@page import="classeMetier.UserStory"%><%@page import="java.io.PrintWriter"%><%@ page contentType="text/html;charset=UTF-8" %><%@ page import="java.sql.*" %><%@ page import="java.sql.DriverManager" %><%@ page import="java.sql.ResultSet" %><% 

classeMetier.ObjectDB db = new classeMetier.ObjectDB();
try{
	db.initialiseConnexion();
	classeMetier.UserStory myUs = new UserStory(db,
		request.getParameter("userstory_id"),
		request.getParameter("userstory_name"),
		request.getParameter("userstory_description"),
		request.getParameter("userstory_comment"),
		request.getParameter("userstory_business_value"),
		request.getParameter("userstory_parent")
	);
	if(myUs.editDB()){
		out.print("La userstory a bien été enregistrée");
	}
	db.closeConnexion();
	
}catch(Exception e){
	response.setStatus(507,e.getMessage());	
}
%>
